import re

txt = '我是  1545'

txt = re.sub('\D', '', txt)
print(txt)
